<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/login.css">
</head>
<body>
    <div class="container">
        <div class="logo"><img src="../images/logo.png" alt=""></div>
        <div class="section">
            <div class="login_content">
                <!-- 账号密码登陆页面 -->
                <div class="login_content_a">
                    <div class="header">
                        <div class="text">扫码登录点这里</div>
                        <div class="triangle"></div>
                        <img src="../images/qrcode.png" alt="二维码" class="icon_qrcode">
                    </div>
                    <!-- 账号密码输入框 -->
                    <div class="main">
                        <ul class="option">
                            <li class="login_left dynamic">账号密码登录</li>
                            <li class="login_right">注册账号</li>
                        </ul>
                        <ul class="card">
                            <li>
                                <div class="tip">账户名与密码不匹配</div>
                                <div class="login_item">
                                    <img src="../images/user.png" alt="">
                                    <input type="text" name="username" id="username" placeholder="请输入账号">
                                </div>
                                <div class="login_item">
                                    <img src="../images/password.png" alt="">
                                    <input type="password" name="password" id="password" placeholder="请输入密码">
                                </div>
                                <div class="login_bot">
                                    <a href="">忘记密码？</a>
                                    <span>
                                        <input type="checkbox" name="checkbox">
                                        记住密码
                                    </span>
                                </div>
                                <!-- 登录按钮 -->
                                <button class="login_button">登录</button>
                            </li>
                            <li class="active">
                                <div class="tip">请输入正确的账号密码</div>
                                <div class="login_item">
                                    <img src="../images/user.png" alt="">
                                    <input type="text" name="username" id="login_account" placeholder="请输入账号">
                                    <div class="hint_account">只允许中英文，数字，最大长度为8</div>
                                </div>
                                <div class="login_item">
                                    <img src="../images/password.png" alt="">
                                    <input type="password" name="password" id="login_password" placeholder="请输入密码">
                                    <div class="hint_password">不允许有空格和中文，最大长度为8</div>
                                </div>
                                <div class="login_bot">
                                    <a href="">忘记密码？</a>
                                    <span>
                                        <input type="checkbox" name="checkbox">
                                        记住密码
                                    </span>
                                </div>
                                <!-- 注册按钮 -->
                                <button class="register_button">注册</button>
                            </li>
                        </ul>
                    </div>
                </div>

                <!-- 微信登陆页面 -->
                <div class="login_content_b active">
                    <div class="header">
                        <div class="text">账号登录点这里</div>
                        <div class="triangle"></div>
                        <img src="../images/user.png" alt="user" class="icon_user">
                    </div>
                    <div class="login_b_title">
                        <img src="../images/wechat.png" alt="">
                        微信扫码登录
                    </div>
                    <img src="../images/big_qrcode.png" alt="" class="libqr">
                    <p>请使用微信扫描二维码登录</p>
                </div>
            </div>
        </div>
    </div>

    <script src="../static/jquery-3.6.0.js"></script>
    <script src="../js/login.js"></script>
    <script>
        let login = new Login()
        login.onLogin()
        login.onRegister()
        login.onChange()
        login.onCut()
        login.onFocus()
    </script>
</body>
</html>